package losrebellos.display.base 
{
	import losrebellos.display.SpritePlus;

	import flash.display.StageAlign;
	import flash.display.StageScaleMode;
	import flash.events.Event;

	/*
	 *
	 * @author los rebellos - ben@benoitvinay.com
	 *
	 */
	public class BaseTestApplication extends SpritePlus 
	{
		/*
		 *
		 * CONSTRUCTOR
		 *
		 */
		public function BaseTestApplication()
		{
			super();
			
			this.addEventListener(Event.ADDED_TO_STAGE, addedToStageHandler);
		}
		
		
		/*
		 * 
		 * STAGE
		 * 
		 */
		protected function addedToStageHandler(e:Event):void
		{
			this.removeEventListener(Event.ADDED_TO_STAGE, addedToStageHandler);
			
			createStageOptions();
			createStageContent();
			addStageContent();
		}
		protected function createStageOptions():void
		{
			stage.align = StageAlign.TOP_LEFT;
			stage.scaleMode = StageScaleMode.NO_SCALE;
		}
		
		
		/*
		 * 
		 * CONTENT
		 * 
		 */
		protected function createStageContent():void
		{
			
		}
		protected function addStageContent():void
		{
			
		}
	}
}